/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgp;

import java.util.ArrayList;

/**
 *
 * @author jstrang3
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    static ArrayList<General> g;
    static BGA list;

    public static void main(String[] args) {
        General temp;
        g = new ArrayList<General>();
        temp = new General(1, ByzantineModel.GENERAL_REBEL);
        g.add(temp);
        temp = new General(0, ByzantineModel.GENERAL_REBEL);
        g.add(temp);
        temp = new General(2, ByzantineModel.COMMANDER_REBEL);
        g.add(temp);
        for (int i = 3; i < 10; i++) {
            temp = new General(i, ByzantineModel.GENERAL);
            g.add(temp);
        }
        list = new BGA(g);
        list.RunSimulation(g);
        for (int i = 0; i < g.size(); i++) {
            for (int j = 0; j < 3; j++) {
                System.out.println(list.getMessageList(i, j));
            }
        }
    }
}
